package com.project.andeper.paperproject;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class ChooseMethodActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_method);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.search_by_eqnum, R.id.search_by_professioneq, R.id.search_by_type, R.id.search_by_userfor, R.id.search_by_department, R.id.search_by_usetype})
    public void onClick(View view) {
        Bundle bundle = new Bundle();
        Intent intent = new Intent(ChooseMethodActivity.this,TypeActivity.class);
        switch (view.getId()) {
            case R.id.search_by_eqnum:
                intent.putExtra("method","search_by_eqnum");
                break;
            case R.id.search_by_professioneq:
                intent.putExtra("method","search_by_professioneq");
                break;
            case R.id.search_by_type:
                intent.putExtra("method","search_by_type");
                break;
            case R.id.search_by_userfor:
                intent.putExtra("method","search_by_userfor");
                break;
            case R.id.search_by_department:
                intent.putExtra("method","search_by_department");
                break;
            case R.id.search_by_usetype:
                intent.putExtra("method","search_by_usetype");
                break;
        }
        startActivity(intent);
    }
}
